/*
PearReview - The peer review assistant.
Copyright (C) 2009  Dimitrij Pankratz, Anton Musichin
http://www.pearreview.com, info@pearreview.com

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

package com.pearreview.application;

import java.awt.Component;
import java.io.File;
import java.io.Serializable;

import javax.swing.Icon;
import javax.swing.JMenuBar;
import javax.swing.JToolBar;

public class View implements Serializable {

	private static final long serialVersionUID = -1821580486182679392L;
	
	private String viewTitle;
	private String tabTitle;
	private String frameTitle;
	private JMenuBar menuBar;
	private JToolBar toolBar;
	private Component component;
	private Icon icon;
	private File file;
	
	private Object source;
	
	public View() {
		
	}
	
	public View(Object source) {
		setSource(source);
	}
	
	public void setMenuBar(JMenuBar menuBar) {
		this.menuBar = menuBar;
	}
	public JMenuBar getMenuBar() {
		return menuBar;
	}
	
	public void setToolBar(JToolBar toolBar) {
		this.toolBar = toolBar;
	}
	public JToolBar getToolBar() {
		return toolBar;
	}
	
	public void setComponent(Component component) {
		this.component = component;
	}
	public Component getComponent() {
		return component;
	}

	public void setSource(Object source) {
		this.source = source;
	}
	public Object getSource() {
		return source;
	}

	public void setTabTitle(String tabTitle) {
		this.tabTitle = tabTitle;
	}
	public String getTabTitle() {
		return tabTitle;
	}
	
	public void setFrameTitle(String frameTitle) {
		this.frameTitle = frameTitle;
	}
	public String getFrameTitle() {
		return frameTitle;
	}

	public void setViewTitle(String viewTitle) {
		this.viewTitle = viewTitle;
	}
	public String getViewTitle() {
		return viewTitle;
	}

	public void setIcon(Icon icon) {
		this.icon = icon;
	}
	public Icon getIcon() {
		return icon;
	}
	
	public void setFile(File file) {
		this.file = file;
	}
	public File getFile() {
		return file;
	}		
}
